#!/usr/bin/env bash

set -x

hdc shell reboot

set +x
while [[ "$(hdc list targets)" =~ \[Empty\] ]]; do
    sleep 1
done
set -x

#hdc shell hilog -b D
hdc shell hilog -p on
hdc shell mount -o remount,rw /
